package com.wjt.homestayms.mapper;

import com.wjt.homestayms.pojo.Room;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoomMapper {

    //根据门店id，获取所有房间的信息
    public List<Room> getRoomList(Integer id);
    //根据房间号，查询房间
    public List<Room> getRoomByRnum(Integer rNum);
    //根据房间id，查询房间
    public List<Room> getRoomByRid(Integer rId);
    //添加房间
    public Integer addRoom(Room room);
    //更新房间信息
    public boolean updateRoomInfo(Room room);
    //更改房间状态
    public boolean modifyStatus(Integer rId,String status);
    //根据房间id，删除房间
    public Integer deleteRoomByRid(Integer rId);

    //根据房间号，查出门店id
    public Integer getStoreId(Integer rNum);

}
